import request from '@/utils/request'

// 查询交易记录列表
export function listTransactionrecords(query) {
  return request({
    url: '/transactionrecords/transactionrecords/list',
    method: 'get',
    params: query
  })
}

// 查询交易记录详细
export function getTransactionrecords(transactionID) {
  return request({
    url: '/transactionrecords/transactionrecords/' + transactionID,
    method: 'get'
  })
}

// 新增交易记录
export function addTransactionrecords(data) {
  return request({
    url: '/transactionrecords/transactionrecords',
    method: 'post',
    data: data
  })
}

// 修改交易记录
export function updateTransactionrecords(data) {
  return request({
    url: '/transactionrecords/transactionrecords',
    method: 'put',
    data: data
  })
}

// 删除交易记录
export function delTransactionrecords(transactionID) {
  return request({
    url: '/transactionrecords/transactionrecords/' + transactionID,
    method: 'delete'
  })
}
